package game.connection;


/**
 * Text message for sending between server and client.
 * @author Sarun Wongtanakarn 5510546166
 * @author Apiwat Jierakulpanit 5510546212
 * @Version 2013.04.23
 */
final class Text implements Package {

	private String text;
	
	public Text(String text) {
		this.text = text;
	}

	@Override
	public String unpack() {
		return text;	
	}

	@Override
	public PackageType getType() {
		return PackageType.TEXT;
	}
	
}
